#@layout()

#define js()
	<script>
			function payMoney(task_id,fair_id){
				var title="任务结算";
			    var url="#(contextPath)/admin/task/payMoney?task_id="+task_id+"&fair_id="+fair_id;
			    var w="";
			    var h=510;
			    layer_show(title,url,w,h);
			}
	</script>
#end


#define main()
	<div>
		<a class="btn btn-success radius r" style="line-height:1.6em;margin:10px" href="javascript:location.replace(location.href);" title="刷新">
            <i class="Hui-iconfont">刷新当前页</i></a>
   </div>
    <table class="table table-border table-bordered table-bg table-hover ">
    	<tr class="text-c" role="row">
    		<th class="sorting_disabled" rowspan="1" colspan="1" >参与网红姓名</th>
    		<th class="sorting_disabled" rowspan="1" colspan="1">正式点击数</th>
    		<th class="sorting_disabled" rowspan="1" colspan="1">测试点击数</th>
    		<th class="sorting_disabled" rowspan="1" colspan="1">正式转换数</th>
    		<th class="sorting_disabled" rowspan="1" colspan="1">测试转换数</th>
    		<th class="sorting_disabled" rowspan="1" colspan="1">结算状态</th>
    		<th class="sorting_disabled" rowspan="1" colspan="1">
    		操作
    		
    		</th>
    	</tr>
    	
    	#for(x:taskWh)
    	<tr class="text-c" role="row">
    		<td class="sorting_disabled" rowspan="1" colspan="1" >#(x.nick_name??'')</td>
    		<td class="sorting_disabled" rowspan="1" colspan="1">#(x.click_num)次</td>
    		<td class="sorting_disabled" rowspan="1" colspan="1">#(x.click_dev)次</td>
    		<td class="sorting_disabled" rowspan="1" colspan="1">#(x.cvs_num)次</td>
    		<td class="sorting_disabled" rowspan="1" colspan="1">#(x.cvs_dev)次</td>
    		<td class="sorting_disabled" rowspan="1" colspan="1">
    			#if(x.status==5)
    				等待结算
    			#elseif(x.status==6)
    				结算完成
    			#end
    		</td>
    		<td class="sorting_disabled" rowspan="1" colspan="1">
    			#if(x.status==5)
    				<a href="javascript:;" onclick="payMoney(#(x.task_id??''),#(x.wh_id??''))">立即结算</a>
    			#end
    		</td>
    	</tr>
    	#end
    </table>
#end